home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / HyperCard / Disk Partition Sizer 2 Folder / Disk Partition Sizer 2 / cards.xml < prev    next >
Encoding:
Text File  |  1994-03-09  |  7.2 KB  |  207 lines

  1. card_3918.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>3918</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_4608.pbm</bitmap>
  8.     <cantDelete> <false /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>3627</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_3270.css" />
  13.     <part>
  14.         <id>1</id>
  15.         <type>field</type>
  16.         <visible> <true /> </visible>
  17.         <dontWrap> <false /> </dontWrap>
  18.         <dontSearch> <false /> </dontSearch>
  19.         <sharedText> <false /> </sharedText>
  20.         <fixedLineHeight> <false /> </fixedLineHeight>
  21.         <autoTab> <true /> </autoTab>
  22.         <lockText> <false /> </lockText>
  23.         <rect>
  24.             <left>272</left>
  25.             <top>87</top>
  26.             <right>327</right>
  27.             <bottom>113</bottom>
  28.         </rect>
  29.         <style>rectangle</style>
  30.         <autoSelect> <false /> </autoSelect>
  31.         <showLines> <false /> </showLines>
  32.         <wideMargins> <true /> </wideMargins>
  33.         <multipleLines> <false /> </multipleLines>
  34.         <reservedFamily> 0 </reservedFamily>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>0</icon>
  37.         <textAlign>center</textAlign>
  38.         <font>Chicago</font>
  39.         <textSize>12</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <textHeight>16</textHeight>
  42.         <name>VolumeSize</name>
  43.         <script>on closeField
  44.  
  45. put cd fld "VolumeSize" into VOLSIZE
  46.  
  47. put empty into cd fld "MinFileSize"
  48.  
  49. if VOLSIZE <= 0 then
  50. answer "I don't understand the volume size."
  51. exit closeField
  52. end if
  53.  
  54. if VOLSIZE > 2000 then
  55.  
  56. answer "The Mac's HFS file system does not currently handle volumes larger than 2 Gbytes."
  57. exit closeField
  58.  
  59. end if
  60.  
  61. if VOLSIZE mod 32 = 0 then
  62. put VOLSIZE/32 into AllocBlocks
  63. else
  64. put trunc (VOLSIZE/32 + 1) into AllocBlocks
  65. end if
  66.  
  67. if AllocBlocks < 1 then put 1 into AllocBlocks
  68.  
  69. put AllocBlocks / 2 & " - " & AllocBlocks & " Kbytes" into cd fld "MinFileSize"
  70.  
  71.  
  72. end closeField</script>
  73.     </part>
  74.     <part>
  75.         <id>3</id>
  76.         <type>field</type>
  77.         <visible> <true /> </visible>
  78.         <dontWrap> <false /> </dontWrap>
  79.         <dontSearch> <false /> </dontSearch>
  80.         <sharedText> <false /> </sharedText>
  81.         <fixedLineHeight> <false /> </fixedLineHeight>
  82.         <autoTab> <false /> </autoTab>
  83.         <lockText> <true /> </lockText>
  84.         <rect>
  85.             <left>215</left>
  86.             <top>167</top>
  87.             <right>333</right>
  88.             <bottom>192</bottom>
  89.         </rect>
  90.         <style>opaque</style>
  91.         <autoSelect> <false /> </autoSelect>
  92.         <showLines> <false /> </showLines>
  93.         <wideMargins> <true /> </wideMargins>
  94.         <multipleLines> <false /> </multipleLines>
  95.         <reservedFamily> 0 </reservedFamily>
  96.         <titleWidth>0</titleWidth>
  97.         <icon>0</icon>
  98.         <textAlign>center</textAlign>
  99.         <font>Geneva</font>
  100.         <textSize>12</textSize>
  101.         <textStyle>plain</textStyle>
  102.         <textHeight>16</textHeight>
  103.         <name>MinFileSize</name>
  104.         <script></script>
  105.     </part>
  106.     <part>
  107.         <id>6</id>
  108.         <type>button</type>
  109.         <visible> <true /> </visible>
  110.         <reserved5> 0 </reserved5>
  111.         <reserved4> 0 </reserved4>
  112.         <reserved3> 0 </reserved3>
  113.         <reserved2> 0 </reserved2>
  114.         <reserved1> 0 </reserved1>
  115.         <enabled> <true /> </enabled>
  116.         <rect>
  117.             <left>398</left>
  118.             <top>130</top>
  119.             <right>460</right>
  120.             <bottom>176</bottom>
  121.         </rect>
  122.         <style>transparent</style>
  123.         <showName> <false /> </showName>
  124.         <highlight> <false /> </highlight>
  125.         <autoHighlight> <true /> </autoHighlight>
  126.         <sharedHighlight> <true /> </sharedHighlight>
  127.         <family>0</family>
  128.         <titleWidth>0</titleWidth>
  129.         <icon>32462</icon>
  130.         <textAlign>center</textAlign>
  131.         <font>Chicago</font>
  132.         <textSize>12</textSize>
  133.         <textStyle>plain</textStyle>
  134.         <name></name>
  135.         <script>on mouseUp
  136. go to card id 2763
  137. end mouseUp
  138.  
  139. </script>
  140.     </part>
  141.     <content>
  142.         <layer>card</layer>
  143.         <id>1</id>
  144.         <text>90</text>
  145.     </content>
  146.     <content>
  147.         <layer>card</layer>
  148.         <id>3</id>
  149.         <text>1.5 - 3 Kbytes</text>
  150.     </content>
  151.     <name></name>
  152.     <script></script>
  153. </card>
  154.  
  155.  
  156. card_2763.xml
  157. <?xml version="1.0" encoding="utf-8" ?>
  158. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  159. <card>
  160.     <id>2763</id>
  161.     <filler1>0</filler1>
  162.     <cantDelete> <false /> </cantDelete>
  163.     <showPict> <true /> </showPict>
  164.     <dontSearch> <false /> </dontSearch>
  165.     <owner>3627</owner>
  166.     <link rel="stylesheet" type="text/css" href="stylesheet_3270.css" />
  167.     <part>
  168.         <id>1</id>
  169.         <type>field</type>
  170.         <visible> <true /> </visible>
  171.         <dontWrap> <false /> </dontWrap>
  172.         <dontSearch> <false /> </dontSearch>
  173.         <sharedText> <false /> </sharedText>
  174.         <fixedLineHeight> <false /> </fixedLineHeight>
  175.         <autoTab> <false /> </autoTab>
  176.         <lockText> <false /> </lockText>
  177.         <rect>
  178.             <left>25</left>
  179.             <top>8</top>
  180.             <right>485</right>
  181.             <bottom>271</bottom>
  182.         </rect>
  183.         <style>scrolling</style>
  184.         <autoSelect> <false /> </autoSelect>
  185.         <showLines> <false /> </showLines>
  186.         <wideMargins> <true /> </wideMargins>
  187.         <multipleLines> <false /> </multipleLines>
  188.         <reservedFamily> 0 </reservedFamily>
  189.         <titleWidth>0</titleWidth>
  190.         <icon>0</icon>
  191.         <textAlign>left</textAlign>
  192.         <font>Geneva</font>
  193.         <textSize>12</textSize>
  194.         <textStyle>plain</textStyle>
  195.         <textHeight>16</textHeight>
  196.         <name></name>
  197.         <script></script>
  198.     </part>
  199.     <part>
  200.         <id>2</id>
  201.         <type>button</type>
  202.         <visible> <true /> </visible>
  203.         <reserved5> 0 </reserved5>
  204.         <reserved4> 0 </reserved4>
  205.         <reserved3> 0 </reserved3>
  206.         <reserved2> 0 </reserved2>
  207.         <reserved1> 0 </reserved1>
  208.         <enabled> <true /> </enabled>
  209.         <rect>
  210.             <left>346</left>
  211.             <top>283</top>
  212.             <right>452</right>
  213.             <bottom>328</bottom>
  214.         </rect>
  215.         <style>shadow</style>
  216.         <showName> <false /> </showName>
  217.         <highlight> <false /> </highlight>
  218.         <autoHighlight> <true /> </autoHighlight>
  219.         <sharedHighlight> <true /> </sharedHighlight>
  220.         <family>0</family>
  221.         <titleWidth>0</titleWidth>
  222.         <icon>29114</icon>
  223.         <textAlign>center</textAlign>
  224.         <font>Chicago</font>
  225.         <textSize>12</textSize>
  226.         <textStyle>plain</textStyle>
  227.         <name></name>
  228.         <script>on mouseUp
  229. go to card id 3918
  230. end mouseUp
  231.  
  232. </script>
  233.     </part>
  234.     <content>
  235.         <layer>card</layer>
  236.         <id>1</id>
  237.         <text><span class="style4">bout Mac Disk Partition Sizer:
  238.  
  239. </span><span class="style5">(Copyright 1994 by Ric Ford, Maynard, Mass. USA. All rights reserved. You may NOT distribute this stack on a CD-ROM or on any other medium.)</span><span class="style6">
  240. </span><span class="style1">
  241. To use this stack, simply type the size of a disk partition into "Volume size", and press Return. The stack will calculate the minimum file sizes for you. (The smaller size is for a file with only data or only resources in it. The larger size is for a file with both.)
  242.  
  243. The design of the Macintosh HFS file system makes the minimum size for a file larger with larger disks. 
  244.  
  245. The minimum size for any file on the smallest disk is 512 bytes or 0.5 Kbytes. The minimum size for a file with both data and a resources inside is 1024 bytes, or 1.0 Kbytes.
  246.  
  247. As soon as the disk is larger than 32 Mbytes, the minimum file sizes grow larger, and they grow larger with every 32 Mbytes of disk size. If you have a 1-Gbyte disk, the smallest file will occupy at least 16 Kbytes. If you have a lot of these files, you'll be wasting quite a bit of space.
  248.  
  249. The solution to this problem is splitting a disk into smaller partitions. Partitions can also help in managing security and file organization.
  250.  
  251. Please contact Ric with suggestions and questions at 72511,44 on CompuServe, ricford@world.std.com on the Internet, or RICFORD on AppleLink.
  252. </span></text>
  253.     </content>
  254.     <name></name>
  255.     <script></script>
  256. </card>
  257.  
  258.  
  259.